package com.yuch.service.impl;

import com.yuch.service.MessageService;
import com.yuch.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private MessageService messageService;

    @Override
    public String order(String id) {
        //一系列的操作
        log.info("订单处理操作开始!");
        //短信消息处理
        String s = messageService.sendMessage(id);

        log.info("订单处理结束");
        return s;
    }
}
